
<%@ page import="cook.Dish" %>
<!doctype html>
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="layout" content="kickstart" />
	<g:set var="entityName" value="${message(code: 'dish.label', default: 'Dish')}" />
	<title><g:message code="default.show.label" args="[entityName]" /></title>
</head>

<body>

<section id="show-dish" class="first">

	<table class="table">
		<tbody>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="dish.dishComponents.label" default="Dish Components" /></td>
				
				<td valign="top" style="text-align: left;" class="value">
					<ul>
					<g:each in="${dishInstance.dishComponents}" var="d">
						<li><g:link controller="dishComponent" action="show" id="${d.id}">${d?.encodeAsHTML()}</g:link></li>
					</g:each>
					</ul>
				</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="dish.ingredientItems.label" default="Ingredient Items" /></td>
				
				<td valign="top" style="text-align: left;" class="value">
					<ul>
					<g:each in="${dishInstance.ingredientItems}" var="i">
						<li><g:link controller="ingredientItem" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
					</g:each>
					</ul>
				</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="dish.name.label" default="Name" /></td>
				
				<td valign="top" class="value">${fieldValue(bean: dishInstance, field: "name")}</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="dish.price.label" default="Price" /></td>
				
				<td valign="top" class="value">$ ${dishInstance.price.setScale(2) }</td>
				
			</tr>
		
			<tr class="prop">
				<td valign="top" class="name"><g:message code="dish.cost.label" default="Cost" /></td>
				
				<td valign="top" class="value">$ ${dishInstance.cost.setScale(2)}</td>
				
			</tr>
		
		
		</tbody>
	</table>
</section>

</body>

</html>
